package com.itechart.watchfacts.domain;

import javax.persistence.*;

/**
 * Created by IntelliJ IDEA.
 * User: E.Krasnotschek
 * Date: 7/22/13
 * Time: 8:40 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "ACCESSORY_ENTRY")
@PrimaryKeyJoinColumn(name="ID")
public class AccessoryEntry extends SearchEntry{

    @ManyToOne()
    @JoinColumn(name = "TYPE_ID")
    private AccessoryType accessoryType;

    @Column(name = "MATERIAL")
    private String material;

    @ManyToOne()
    @JoinColumn(name = "COLOR_ID")
    private Color color;

    public AccessoryType getAccessoryType() {
        return accessoryType;
    }

    public void setAccessoryType(AccessoryType accessoryType) {
        this.accessoryType = accessoryType;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }
}
